package com.shaokel.vod.utils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author 少丶客
 * @ClassName ConstantVoUtils
 * @Description 上传工具类
 * @Date 2020/6/8 18:15
 * @Vesion 1.0
 */
@Component
public class ConstantVoUtils implements InitializingBean {

    @Value("aliyun.vod.file.keyid")
    private String keyid;

    @Value("aliyun.vod.file.keysecret")
    private String keysecret;

    public static String  ACCESS_KEY_ID;
    public static String  ACCESS_KEY_SECRET;

    @Override
    public void afterPropertiesSet() throws Exception {
        ACCESS_KEY_ID = keyid;
        ACCESS_KEY_SECRET = keysecret;
    }
}